﻿<UserControl x:Class="churchtool.Plugin.SermonUpload.View.UploadWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="420" Width="499"
        DataContextChanged="OnDataContextChanged">

    <Grid Height="409">
        <Label Height="44" Margin="11,22,221,0" Name="label1" VerticalAlignment="Top" FontSize="20" FontWeight="Bold" Content="{DynamicResource UploadWindowView_HeadLine_1}" />
        <Button Content="Upload" Command="{Binding DoUploadWork}" IsEnabled="{Binding UploadButtonIsEnable}" HorizontalAlignment="Center" Margin="388,338,14,38" Width="75" />
        <TabControl Height="181" HorizontalAlignment="Left" Margin="14,123,0,0" Name="tabControl" VerticalAlignment="Top" Width="462">
            <TabItem Header="{DynamicResource UploadWindowView_TabBar_Sermon}" Name="tabItem1">
                <Grid>
                    <TextBlock Height="81" Margin="6,6,0,0" Name="selectedFile" VerticalAlignment="Top" HorizontalAlignment="Left" Width="440" Text="{Binding Path=SelectedFileText, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"/>
                    <Button Content="Browse" Height="23" HorizontalAlignment="Right" Margin="0,93,8,0" Name="StartButton" VerticalAlignment="Top" Width="75" Command="{Binding DoBrowseFiles}" IsEnabled="{Binding BrowseButtonIsVisible}"/>
                </Grid>
            </TabItem>
            <TabItem Header="{DynamicResource UploadWindowView_TabBar_SermonDetails}" Name="tabItem2">
                <GroupBox Header="{DynamicResource UploadWindowView_TabBar_SermonDetails}" Height="150" HorizontalAlignment="Left" Name="SermonInfo" VerticalAlignment="Top" Width="451" IsEnabled="{Binding SetID3TagIsVisible}">
                    <Grid Width="441">
                        <Label Height="28" HorizontalAlignment="Left"  Name="label3" VerticalAlignment="Top" Width="74" Margin="0,6,0,0" Content="{DynamicResource UploadWindowView_TabBar_ID3_Author}" />
                        <Label HorizontalAlignment="Left"  Name="label4" Width="74" Height="28" VerticalAlignment="Top" Margin="0,38,0,0" Content="{DynamicResource UploadWindowView_TabBar_ID3_Title}" />
                        <Label HorizontalAlignment="Left" Name="label5" Width="74" Height="28" VerticalAlignment="Top" Margin="0,69,0,0" Content="{DynamicResource UploadWindowView_TabBar_ID3_Comment}" />
                        <TextBox Name="authorTextBox" Height="28" VerticalAlignment="Top" Margin="73,6,84,0" Text="{Binding Preacher}"/>
                        <TextBox Name="topicTextBox" Height="28" VerticalAlignment="Top" Margin="73,38,83,0" Text="{Binding SermonTitle}"/>
                        <TextBox Height="28" Name="commentTextBox" VerticalAlignment="Top" Margin="73,69,84,0" Text="{Binding SermonComment}" />
                        <Label Content="{DynamicResource UploadWindowView_TabBar_ID3_Date}" Height="28" HorizontalAlignment="Left" Margin="0,93,0,0" Name="label8" VerticalAlignment="Top" Width="74" />
                        <DatePicker Height="25" HorizontalAlignment="Left" Margin="73,99,0,0" Name="dp" VerticalAlignment="Top" Width="285" SelectedDate="{Binding SermonDate}"/>
                        <Button Content="SetID3" Height="23" HorizontalAlignment="Left" Margin="363,99,0,0" Name="ID3TagButton" VerticalAlignment="Top" Width="75" Command="{Binding SetID3Tags}"/>
                    </Grid>
                </GroupBox>
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>
